<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">储值卡</h3>

                <div class="box-tools">

                </div>
            </div>

            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>面值</th>
                        <th>课时数</th>
                        <th>单价</th>
                        <th>余额</th>
                        <th>剩余课时</th>
                        <th>所有者</th>
                        <th>充值日期</th>
                        <th>操作</th>
                    </tr>
                    @foreach($cards as $card)
                    <tr>
                        <td>{{ $card->card_id }}</td>
                        <td>{{ $card->face_value }}</td>
                        <td>{{ $card->class_hour }}</td>
                        <td>{{ $card->unit_price }}</td>
                        <td>{{ $card->remainder_value }}</td>
                        <td>{{ $card->remainder_class_hour }}</td>
                        <td>{{ $card->name }}</td>
                        <td>{{ $card->card_time }}</td>
                        <td>
                            {{--@permission('delete-card')--}}
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/cards', $card->card_id) }}" onclick="delfun(this)" class="X-Small btn-xs text-danger "><i class="fa fa-remove"></i> 删除</a>
                            {{--@endpermission--}}
                        </td>
                    </tr>
                    @endforeach
                </table>
            </div>
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {!! $cards->links('vendor.pagination.pages') !!}
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>